Integrand size = 15, antiderivative size = 36 \[ \int \frac {\tan (x)}{\sqrt {a+a \cot ^2(x)}} \, dx=\frac {\text {arctanh}\left (\frac {\sqrt {a \csc ^2(x)}}{\sqrt {a}}\right )}{\sqrt {a}}-\frac {1}{\sqrt {a \csc ^2(x)}} \]
[Out]
Time = 0.10 (sec) , antiderivative size = 36, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3738, 4209, 53, 65, 213} \[ \int \frac {\tan (x)}{\sqrt {a+a \cot ^2(x)}} \, dx=\frac {\text {arctanh}\left (\frac {\sqrt {a \csc ^2(x)}}{\sqrt {a}}\right )}{\sqrt {a}}-\frac {1}{\sqrt {a \csc ^2(x)}} \]
[In]
[Out]
Rule 53
Rule 65
Rule 213
Rule 3738
Rule 4209
Rubi steps \begin{align*} \text {integral}& = \int \frac {\tan (x)}{\sqrt {a \csc ^2(x)}} \, dx \\ & = -\left (\frac {1}{2} a \text {Subst}\left (\int \frac {1}{(-1+x) (a x)^{3/2}} \, dx,x,\csc ^2(x)\right )\right ) \\ & = -\frac {1}{\sqrt {a \csc ^2(x)}}-\frac {1}{2} \text {Subst}\left (\int \frac {1}{(-1+x) \sqrt {a x}} \, dx,x,\csc ^2(x)\right ) \\ & = -\frac {1}{\sqrt {a \csc ^2(x)}}-\frac {\text {Subst}\left (\int \frac {1}{-1+\frac {x^2}{a}} \, dx,x,\sqrt {a \csc ^2(x)}\right )}{a} \\ & = \frac {\text {arctanh}\left (\frac {\sqrt {a \csc ^2(x)}}{\sqrt {a}}\right )}{\sqrt {a}}-\frac {1}{\sqrt {a \csc ^2(x)}} \\ \end{align*}
Time = 0.03 (sec) , antiderivative size = 19, normalized size of antiderivative = 0.53 \[ \int \frac {\tan (x)}{\sqrt {a+a \cot ^2(x)}} \, dx=\frac {-1+\text {arctanh}(\sin (x)) \csc (x)}{\sqrt {a \csc ^2(x)}} \]
[In]
[Out]
Time = 0.42 (sec) , antiderivative size = 39, normalized size of antiderivative = 1.08
method | result | size |
default | \(-\frac {\sqrt {4}\, \left (\sin \left (x \right )+\ln \left (-\cot \left (x \right )+\csc \left (x \right )-1\right )-\ln \left (-\cot \left (x \right )+\csc \left (x \right )+1\right )\right ) \csc \left (x \right )}{2 \sqrt {a \csc \left (x \right )^{2}}}\) | \(39\) |
risch | \(-\frac {{\mathrm e}^{2 i x}}{2 \sqrt {-\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}-1\right )}+\frac {1}{2 \left ({\mathrm e}^{2 i x}-1\right ) \sqrt {-\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}}-\frac {i {\mathrm e}^{i x} \ln \left ({\mathrm e}^{i x}-i\right )}{\sqrt {-\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}-1\right )}+\frac {i {\mathrm e}^{i x} \ln \left ({\mathrm e}^{i x}+i\right )}{\sqrt {-\frac {a \,{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}-1\right )^{2}}}\, \left ({\mathrm e}^{2 i x}-1\right )}\) | \(157\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 78 vs. \(2 (28) = 56\).
Time = 0.28 (sec) , antiderivative size = 78, normalized size of antiderivative = 2.17 \[ \int \frac {\tan (x)}{\sqrt {a+a \cot ^2(x)}} \, dx=\frac {{\left (\tan \left (x\right )^{2} + 1\right )} \sqrt {a} \log \left (2 \, a \tan \left (x\right )^{2} + 2 \, \sqrt {a} \sqrt {\frac {a \tan \left (x\right )^{2} + a}{\tan \left (x\right )^{2}}} \tan \left (x\right )^{2} + a\right ) - 2 \, \sqrt {\frac {a \tan \left (x\right )^{2} + a}{\tan \left (x\right )^{2}}} \tan \left (x\right )^{2}}{2 \, {\left (a \tan \left (x\right )^{2} + a\right )}} \]
[In]
[Out]
\[ \int \frac {\tan (x)}{\sqrt {a+a \cot ^2(x)}} \, dx=\int \frac {\tan {\left (x \right )}}{\sqrt {a \left (\cot ^{2}{\left (x \right )} + 1\right )}}\, dx \]
[In]
[Out]
none
Time = 0.35 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.44 \[ \int \frac {\tan (x)}{\sqrt {a+a \cot ^2(x)}} \, dx=-\frac {1}{2} \, a {\left (\frac {\log \left (-\frac {\sqrt {a} - \sqrt {\frac {a}{\sin \left (x\right )^{2}}}}{\sqrt {a} + \sqrt {\frac {a}{\sin \left (x\right )^{2}}}}\right )}{a^{\frac {3}{2}}} + \frac {2}{a \sqrt {\frac {a}{\sin \left (x\right )^{2}}}}\right )} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 12, normalized size of antiderivative = 0.33 \[ \int \frac {\tan (x)}{\sqrt {a+a \cot ^2(x)}} \, dx=-\frac {\sin \left (x\right )}{\sqrt {a} \mathrm {sgn}\left (\sin \left (x\right )\right )} \]
[In]
[Out]
Time = 13.19 (sec) , antiderivative size = 20, normalized size of antiderivative = 0.56 \[ \int \frac {\tan (x)}{\sqrt {a+a \cot ^2(x)}} \, dx=\frac {\mathrm {atanh}\left (\sqrt {\frac {1}{{\sin \left (x\right )}^2}}\right )-\sqrt {{\sin \left (x\right )}^2}}{\sqrt {a}} \]
[In]
[Out]